
//////////////////////////////////////////////////////////////////////
#ifndef _DYNLIB_MANAGER_H_
#define _DYNLIB_MANAGER_H_

#include "config.h"
#include <map>
namespace KCore
{
	class DynLib;
	class _KExport DynLibManager
	{
	public:
		typedef std::map<std::string,DynLib* > DynMap;

		DynLibManager();
        virtual ~DynLibManager();
        DynLib* load(const char* name);
		void unload(const char* name);

		DynMap& getDynLibs()
		{
			return _dynLibs;
		}
	private:
		DynMap _dynLibs;
	};
};

#endif

